import axios from "@/utils/request"
import qs from 'qs'

// 分级医生-医生综合列表
export const doctorlistDoctorReq = (params) => axios({
    url: '/doctor/list_doctor',
    method: 'get',
    params
})

// 分级医生-多条件搜索医生综合列表
export const doctorSearchDoctorReq = (params) => axios({
    url: '/doctor/search_doctor',
    method: 'get',
    params
})
// 获取医生/护士当日排班
export const doctorGetDnDaylineReq = (params) => axios({
    url: '/doctor/get_dn_dayline',
    method: 'get',
    params
})

// 修改医生/护士排班
export const doctorEditDnDaylineReq = (data) => axios({
    url: '/doctor/edit_dn_dayline',
    method: 'post',
    data: {
        id: data.id,
        newdate: qs.stringify(data.newdate)
    }
})
// 分级医生-修改医生
export const doctorEditDoctorReq = (data) => axios({
    url: '/doctor/edit_doctor',
    method: 'post',
    data
})